import os,sys

sys.path.append(os.path.abspath(os.path.dirname(__file__) + '/' + '..'))

from core.item import *

def test_book_download_progress():
    book=BookItem.get_by_id(1)
    print(book.progress)
    book=BookItem.get_by_id(2)
    print(book.progress)

def test_get_book_page_count():
    book=BookItem.get_by_id(1)
    print(book.page_count)
    book=BookItem.get_by_id(2)
    print(book.page_count)

if __name__ == '__main__':
    # test_book_download_progress()
    test_get_book_page_count()